<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("basePath", basePath);
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>作品编辑</title>
<link rel="stylesheet"
	href="${basePath }/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
	<form class="form-horizontal" action="${basePath }admin/editWork.action"
		method="post">
		
			<input type="hidden" name="id" value="${work.id }">
		
		<div class="form-group">
			<label for="InputName" class="col-sm-2 control-label">名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${work.name }"
					id="InputName" name="name" placeholder="名称">
			</div>
		</div>
		<div class="form-group">
			<label for="InputImage" class="col-sm-2 control-label">图片</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${work.image }"
					id="InputImage" name="image" placeholder="图片">
			</div>
		</div>
		<div class="form-group">
			<label for="InputTitle" class="col-sm-2 control-label">标题</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${work.title }"
					id="InputTitle" name="title" placeholder="标题">
			</div>
		</div>
		<div class="form-group">
			<label for="InputUrl" class="col-sm-2 control-label">链接地址</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${work.url }"
					id="InputUrl" name="url" placeholder="链接地址">
			</div>
		</div>
		<div class="form-group">
			<label for="InputTime" class="col-sm-2 control-label">时间</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${work.time }"
					id="InputTime" name="time" placeholder="时间">
			</div>
		</div>
		<div class="form-group">
			<label for="inputType" class="col-sm-2 control-label">类型</label>
			<div class="col-sm-10">
				<select name="type" class="form-control">
					<option value="古装">古装</option>
					<option value="爱情">爱情</option>
					<option value="搞笑">搞笑</option>
					<option value="悬疑 ">悬疑 </option>
					<option value="犯罪 ">犯罪</option>
					<option value="战争 ">战争</option>
					<option value="动作 ">动作</option>
					<option value="科幻  ">科幻</option>
					<option value="剧情 ">剧情</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">提交</button>
			</div>
		</div>
	</form>

</body>
</html>